package com.mumulx.check.service.service.impl;

import com.mumulx.check.mapper.CheckpartSendLogMapper;
import com.mumulx.check.model.CheckpartSendLog;
import com.mumulx.check.service.service.CheckpartSendLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service("checkpartSendLogService")
public class CheckpartSendLogServiceImpl implements CheckpartSendLogService {
    @Resource
    CheckpartSendLogMapper checkpartSendLogMapper;

    public Integer updateMailSendLogStatus(String msgId, Integer status) {
        return checkpartSendLogMapper.updateCheckpartSendLogStatus(msgId, status);
    }

    public Integer insert(CheckpartSendLog mailSendLog) {
        return checkpartSendLogMapper.insert(mailSendLog);
    }

    public List<CheckpartSendLog> getMailSendLogsByStatus() {
        return checkpartSendLogMapper.getCheckPartSendLogsByStatus();
    }

    public Integer updateCount(String msgId, Date date) {
        return checkpartSendLogMapper.updateCount(msgId,date);
    }
}
